www.gusucode.com > VC++使用XOR 256算法对文件进行加密解密-源码程序 > VC++使用XOR 256算法对文件进行加密解密-源码程序/code/HexEnc_src/InputDialog.cpp
//Download by http://www.NewXing.com // InputDialog.cpp : implementation file // #include "stdafx.h" #include "HexEnc.h" #include "InputDialog.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CInputDialog dialog CInputDialog::CInputDialog(CWnd* pParent /*=NULL*/) : CDialog(CInputDialog::IDD, pParent) { //{{AFX_DATA_INIT(CInputDialog) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CInputDialog::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CInputDialog) DDX_Control(pDX, IDOK, m_wndOK); DDX_Control(pDX, IDCANCEL, m_wndCancel); DDX_Text(pDX, IDC_EDIT_INPUTBOX, m_nKey); DDV_MinMaxInt(pDX, m_nKey, 1, 1000000000); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CInputDialog, CDialog) //{{AFX_MSG_MAP(CInputDialog) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CInputDialog message handlers BOOL CInputDialog::OnInitDialog() { CDialog::OnInitDialog(); this->SetIcon(AfxGetApp()->LoadIcon(IDI_INPUTBOX), TRUE); m_wndOK.SetIcon(AfxGetApp()->LoadIcon(IDI_OK)); m_wndCancel.SetIcon(AfxGetApp()->LoadIcon(IDI_CANCEL)); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }